import request from '@/utils/request'

// 查询订单取消原因对应表列表
export function listCancelorder(query) {
  return request({
    url: '/service/cancelorder/list',
    method: 'get',
    params: query
  })
}

// 查询订单取消原因对应表详细
export function getCancelorder(cancelorderId) {
  return request({
    url: '/service/cancelorder/' + cancelorderId,
    method: 'get'
  })
}

// 新增订单取消原因对应表
export function addCancelorder(data) {
  return request({
    url: '/service/cancelorder',
    method: 'post',
    data: data
  })
}

// 修改订单取消原因对应表
export function updateCancelorder(data) {
  return request({
    url: '/service/cancelorder',
    method: 'put',
    data: data
  })
}

// 删除订单取消原因对应表
export function delCancelorder(cancelorderId) {
  return request({
    url: '/service/cancelorder/' + cancelorderId,
    method: 'delete'
  })
}
